/*
  @author: 13813
  @date: 2024/11/7 14:29
*/
public class IfDemo02 {
    public static void main(String[] args) {
        /*
            定义一个月份，输出此月份的天数
         */

        int month = 6;

        if (month == 1 || month == 3 || month == 5 || month == 7 || month == 8 || month == 10 || month == 12) {
            System.out.println("31");
        }

        if (month == 4 || month == 6 || month == 9 || month == 11) {
            System.out.println("30");
        }

        if (month == 2) {
            System.out.println("28");
        }
    }
}
